let api = `${baseApi}maintenance`;

/**
 * @method addMaintenanceRecords 添加维修信息
 * @param 维修对象
 * @return axios
 */
export const addMaintenanceRecords = function (params){
	return axios.post(`${api}/addMaintenanceRecords`,params)
}

/**
 * @method delectMaintenanceRecords 删除维修信息
 * @param 维修对象
 * @return axios
 */
export const delectMaintenanceRecords = function (params){
	return axios.delete(`${api}/delectMaintenanceRecords/`+params)
}

/**
 * @method getMaintenanceRecords 查询所有维修信息
 * @param {page,pageSize}
 * @return axios
 */
export const getMaintenanceRecords = function (params){
	return axios.post(`${api}/getList`,params)
}

/**
 * @method getMaintenanceById 据Id查询维修信息
 * @param {page,pageSize}
 * @return axios
 */
export const getMaintenanceById = function (params){
	return axios.get(`${api}/getMaintenanceById/`+params)
}

/**
 * @method queryMaintenance  条件查询维修信息
 * @param {page,pageSize}
 * @return axios
 */
export const queryMaintenance = function (params){
	return axios.post(`${api}/query`,params)
}

/**
 * @method updateMaintenanceRecords  修改维修信息
 * @param 表单对象
 * @return axios
 */
export const updateMaintenanceRecords = function (params){
	return axios.put(`${api}/updateMaintenanceRecords`,params)
}